/*
 * Copyright 2004 original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jbfilter.hibernate.factory;

import org.jbfilter.core.factory.FilterComponentProvider;
import org.jbfilter.hibernate.fcomps.logic.AndFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.logic.DynamicLogicFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.logic.OrFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.logic.XorFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.multiple.StartEndDateFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.single.ComparableFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.single.ContainsStringFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.single.DateFilterComponentHibernate;
import org.jbfilter.hibernate.fcomps.single.EqualsFilterComponentHibernate;

public interface FilterComponentHibernatesProvider extends FilterComponentProvider {

	// EqualsFilterComponent
	<E, T> EqualsFilterComponentHibernate<E, T> newEqualsFilterComponent();
	<E, T> EqualsFilterComponentHibernate<E, T> newEqualsFilterComponent(String id);
	<E, T> EqualsFilterComponentHibernate<E, T> newEqualsFilterComponent(String id, String propertyPath);
	
	// ContainsStringFilterComponent
	<E> ContainsStringFilterComponentHibernate<E> newContainsStringFilterComponent();
	<E> ContainsStringFilterComponentHibernate<E> newContainsStringFilterComponent(String id);
	<E> ContainsStringFilterComponentHibernate<E> newContainsStringFilterComponent(String id, String propertyPath);

	// DateFilterComponent
	<E> DateFilterComponentHibernate<E> newDateFilterComponent();
	<E> DateFilterComponentHibernate<E> newDateFilterComponent(String id);
	<E> DateFilterComponentHibernate<E> newDateFilterComponent(String id, String propertyPath);

	// StartEndDateFilterComponent
	<E> StartEndDateFilterComponentHibernate<E> newStartEndDateFilterComponent();
	<E> StartEndDateFilterComponentHibernate<E> newStartEndDateFilterComponent(String id);
	<E> StartEndDateFilterComponentHibernate<E> newStartEndDateFilterComponent(String id, String propertyPath);
	
	// ComparableFilterComponent
	<E, T extends Comparable<? super T>> ComparableFilterComponentHibernate<E, T> newComparableFilterComponent();
	<E, T extends Comparable<? super T>> ComparableFilterComponentHibernate<E, T> newComparableFilterComponent(String id);
	<E, T extends Comparable<? super T>> ComparableFilterComponentHibernate<E, T> newComparableFilterComponent(String id, String propertyPath);

	// AndFilterComponent
	<E> AndFilterComponentHibernate<E> newAndFilterComponent();
	<E> AndFilterComponentHibernate<E> newAndFilterComponent(String id);

	// OrFilterComponent
	<E> OrFilterComponentHibernate<E> newOrFilterComponent();
	<E> OrFilterComponentHibernate<E> newOrFilterComponent(String id);
	
	// XorFilterComponent
	<E> XorFilterComponentHibernate<E> newXorFilterComponent();
	<E> XorFilterComponentHibernate<E> newXorFilterComponent(String id);

	// DynamicLogicFilterComponent
	<E> DynamicLogicFilterComponentHibernate<E> newDynamicLogicFilterComponent();
	<E> DynamicLogicFilterComponentHibernate<E> newDynamicLogicFilterComponent(String id);

}
